package org.iabako.shared.iservice.function;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import org.iabako.shared.querydefinition.dto.QueryDefinitionDTO;

/**
 * Created by jose on 15/09/14.
 */
public interface ExcelGeneratorServiceAsync {

    void getExcelFile(QueryDefinitionDTO queryDefinitionDTO, AsyncCallback<String> async);

    public static final class Util {
        private static ExcelGeneratorServiceAsync instance;

        public static final ExcelGeneratorServiceAsync getInstance() {
            if (instance == null) {
                instance = GWT.create(ExcelGeneratorService.class);
            }
            return instance;
        }
    }
}


